package cc.javaee.bbs.service.activity;

import cc.javaee.bbs.dao.activity.ActivityPrizeDao;
import cc.javaee.bbs.model.activity.KbrActivityPrize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityArrangeService{
	@Autowired
	ActivityPrizeDao activityPrizeDao;
	
	public KbrActivityPrize findById(KbrActivityPrize prize) {
		List<KbrActivityPrize> list= activityPrizeDao.find(prize);
		if(list.size()>0){
			prize=list.get(0);
		}
		return prize;
	}
	
}
